package com.example.demo.mapper;

import com.example.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Controller;

import java.util.List;

@Mapper
@Controller
public interface UserMapper {
    public List<UserInfo> getAll();

    int add(UserInfo userInfo);

    int add2(UserInfo userInfo);

    int add3(String username,String password,String photo,int state);

    int updatePassword(Integer id, String password);

    int del(int id);

    List<UserInfo> findByName(String name);

    List<UserInfo> getAll2(String order);
    List<UserInfo> getAll3();
    UserInfo login(String username, String password);
}
